package com.ruoyi.system.api.factory;


import com.ruoyi.system.api.RemoteArticleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteArticleFallbackFactory implements FallbackFactory<RemoteArticleService> {

    private static final Logger log = LoggerFactory.getLogger(RemoteFileFallbackFactory.class);

    @Override
    public RemoteArticleService create(Throwable cause) {
        log.error("文件服务调用失败:{}", cause.getMessage());
        return null;
    }
}
